/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race American Indian Apache</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S14919 (C-0-T14914-S14915-S14916-S14919-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAmericanIndianApache()
 * @model extendedMetaData="name='RaceAmericanIndianApache'"
 * @generated
 */
public enum RaceAmericanIndianApache implements Enumerator {
	/**
	 * The '<em><b>10108</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10108_VALUE
	 * @generated
	 * @ordered
	 */
	_10108(0, "_10108", "1010-8"),

	/**
	 * The '<em><b>10116</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10116_VALUE
	 * @generated
	 * @ordered
	 */
	_10116(1, "_10116", "1011-6"),

	/**
	 * The '<em><b>10124</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10124_VALUE
	 * @generated
	 * @ordered
	 */
	_10124(2, "_10124", "1012-4"),

	/**
	 * The '<em><b>10132</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10132_VALUE
	 * @generated
	 * @ordered
	 */
	_10132(3, "_10132", "1013-2"),

	/**
	 * The '<em><b>10140</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10140_VALUE
	 * @generated
	 * @ordered
	 */
	_10140(4, "_10140", "1014-0"),

	/**
	 * The '<em><b>10157</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10157_VALUE
	 * @generated
	 * @ordered
	 */
	_10157(5, "_10157", "1015-7"),

	/**
	 * The '<em><b>10165</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10165_VALUE
	 * @generated
	 * @ordered
	 */
	_10165(6, "_10165", "1016-5"),

	/**
	 * The '<em><b>10173</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10173_VALUE
	 * @generated
	 * @ordered
	 */
	_10173(7, "_10173", "1017-3"),

	/**
	 * The '<em><b>10181</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10181_VALUE
	 * @generated
	 * @ordered
	 */
	_10181(8, "_10181", "1018-1"),

	/**
	 * The '<em><b>10199</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10199_VALUE
	 * @generated
	 * @ordered
	 */
	_10199(9, "_10199", "1019-9");

	/**
	 * The '<em><b>10108</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10108</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10108
	 * @model literal="1010-8"
	 * @generated
	 * @ordered
	 */
	public static final int _10108_VALUE = 0;

	/**
	 * The '<em><b>10116</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10116</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10116
	 * @model literal="1011-6"
	 * @generated
	 * @ordered
	 */
	public static final int _10116_VALUE = 1;

	/**
	 * The '<em><b>10124</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10124</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10124
	 * @model literal="1012-4"
	 * @generated
	 * @ordered
	 */
	public static final int _10124_VALUE = 2;

	/**
	 * The '<em><b>10132</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10132</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10132
	 * @model literal="1013-2"
	 * @generated
	 * @ordered
	 */
	public static final int _10132_VALUE = 3;

	/**
	 * The '<em><b>10140</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10140</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10140
	 * @model literal="1014-0"
	 * @generated
	 * @ordered
	 */
	public static final int _10140_VALUE = 4;

	/**
	 * The '<em><b>10157</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10157</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10157
	 * @model literal="1015-7"
	 * @generated
	 * @ordered
	 */
	public static final int _10157_VALUE = 5;

	/**
	 * The '<em><b>10165</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10165</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10165
	 * @model literal="1016-5"
	 * @generated
	 * @ordered
	 */
	public static final int _10165_VALUE = 6;

	/**
	 * The '<em><b>10173</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10173</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10173
	 * @model literal="1017-3"
	 * @generated
	 * @ordered
	 */
	public static final int _10173_VALUE = 7;

	/**
	 * The '<em><b>10181</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10181</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10181
	 * @model literal="1018-1"
	 * @generated
	 * @ordered
	 */
	public static final int _10181_VALUE = 8;

	/**
	 * The '<em><b>10199</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10199</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10199
	 * @model literal="1019-9"
	 * @generated
	 * @ordered
	 */
	public static final int _10199_VALUE = 9;

	/**
	 * An array of all the '<em><b>Race American Indian Apache</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAmericanIndianApache[] VALUES_ARRAY =
		new RaceAmericanIndianApache[] {
			_10108,
			_10116,
			_10124,
			_10132,
			_10140,
			_10157,
			_10165,
			_10173,
			_10181,
			_10199,
		};

	/**
	 * A public read-only list of all the '<em><b>Race American Indian Apache</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAmericanIndianApache> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race American Indian Apache</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianApache get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianApache result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Apache</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianApache getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianApache result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Apache</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianApache get(int value) {
		switch (value) {
			case _10108_VALUE: return _10108;
			case _10116_VALUE: return _10116;
			case _10124_VALUE: return _10124;
			case _10132_VALUE: return _10132;
			case _10140_VALUE: return _10140;
			case _10157_VALUE: return _10157;
			case _10165_VALUE: return _10165;
			case _10173_VALUE: return _10173;
			case _10181_VALUE: return _10181;
			case _10199_VALUE: return _10199;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAmericanIndianApache(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAmericanIndianApache
